package main

import "time"

func main() {
	counter := 0
	//var mu sync.Mutex
	for i := 0; i < 1000; i++ {
		go func() {
			//mu.Lock()
			//mu.Unlock()
			counter = counter + 1
			//mu.Unlock()
		}()
	}
	time.Sleep(5 * time.Second)
	println(counter)
}
